package com.lincoln.entity.permission;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.lincoln.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;

/**
 * 权限(最细)这里需要配合代码实现权限
 */
@Data
@Entity(name = "permission")
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})//转json忽略参数
public class DbPermission extends BaseEntity {
    //权限名
    @Column(name = "name", columnDefinition = "varchar(200)", length = 200, nullable = false)
    String name;
}
